<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app"></div>
  <script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
  <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
  <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> 

  <script type="text/babel">
    // const el = <div>
    //   <h1>等哈哈哈， 今天前期不错</h1>
    //   <h2>还行吧</h2>
    // </div>
    const el = React.createElement('h1', { className: 'active' }, [
      '今天天气不错！！！',
      React.createElement('span', { className: 'active1', title: '呵呵' }, [
        '哈哈哈， 真好！！！'
      ])
    ])

    console.log(el);
    ReactDOM.render(el, document.querySelector('#app'))
  </script>
</body>

</html>